//   let detailData = {
//     resourceId: '10000001',
//     type: 'feed',
//     webUrl: 'https://developer.harmonyos.com/',
//     collectionCount: 116,
//     likesCount: 668,
//     mediaSrc: 'https://ops-dra.agcstorage.link/v0/my-cloud-mvc5l/bird.mp4?token=be902a58-4f4c-4774-844b-4e21dcd0a5a2',
//     isLiked: true,
//     isCollected: false,
//     relatedSource: [
//       {
//         "id": "10000012",
//         "title": "测试数据",
//         "brief": "这是测试数据的简介",
//         "headerImageUrl": "https://ops-dra.agcstorage.link/v0/my-cloud-mvc5l/harmonyos-path1.png?token=e0344a82-a2c4-4988-bb27-47bbda67ae10",
//         "type": "feed",
//         "webUrl": "https://fly.harmonyos-developer.top/",
//         "publishDate": "2023-06-13T02:47:20.408Z",
//         "topics": "t001",
//         "viewsCount": 10,
//         "collectionCount": 10,
//         "likesCount": 10,
//         "tag": 1,
//         "bannerSrc": "https://ops-dra.agcstorage.link/v0/my-cloud-mvc5l/harmonyos-path1.png?token=e0344a82-a2c4-4988-bb27-47bbda67ae10",
//         "mediaSrc": "https://ops-dra.agcstorage.link/v0/my-cloud-mvc5l/bird.mp4?token=be902a58-4f4c-4774-844b-4e21dcd0a5a2",
//         "isLiked": false,
//         "isCollected": false
//       },
//       {
//         "id": "10000011",
//         "title": "测试数据",
//         "brief": "这是测试数据的简介",
//         "headerImageUrl": "https://ops-dra.agcstorage.link/v0/my-cloud-mvc5l/harmonyos-path1.png?token=e0344a82-a2c4-4988-bb27-47bbda67ae10",
//         "type": "feed",
//         "webUrl": "https://fly.harmonyos-developer.top/",
//         "publishDate": "2023-06-13T02:47:20.408Z",
//         "topics": "t001",
//         "viewsCount": 10,
//         "collectionCount": 10,
//         "likesCount": 10,
//         "tag": 1,
//         "bannerSrc": "https://ops-dra.agcstorage.link/v0/my-cloud-mvc5l/harmonyos-path1.png?token=e0344a82-a2c4-4988-bb27-47bbda67ae10",
//         "mediaSrc": "https://ops-dra.agcstorage.link/v0/my-cloud-mvc5l/bird.mp4?token=be902a58-4f4c-4774-844b-4e21dcd0a5a2",
//         "isLiked": false,
//         "isCollected": false
//       }
//     ]

class DetailResp {
    constructor(resourceId,title,headerImageUrl, type, webUrl, collectionCount, likesCount,viewsCount, mediaSrc, isLiked, isCollected, relatedSource) {
        this.resourceId = resourceId;
        this.title = title;
        this.headerImageUrl = headerImageUrl;
        this.type = type;
        this.webUrl = webUrl;
        this.collectionCount = collectionCount;
        this.likesCount = likesCount;
        this.viewsCount = viewsCount;
        this.mediaSrc = mediaSrc;
        this.isLiked = isLiked;
        this.isCollected = isCollected;
        this.relatedSource = relatedSource;
    }
}

module.exports = { DetailResp }